package tmproject.hlhj.fhp.cartrans.presenter

import android.content.Context
import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.cartrans.IView.ExamRuleView
import tmproject.hlhj.fhp.cartrans.javaBean.ExamRuleBean
import tmproject.hlhj.fhp.cartrans.modules.ExamRuleModule

/**
 * Created by Administrator on 2018/8/28/028.
 */
class ExamRulePresenter :BasePresenter<ExamRuleModule,ExamRuleView>(), ExamRuleModule.OnExamRuleListener {
    override fun createModule() {
        module= ExamRuleModule()
        module.listener=this
    }

    fun getRule(c:Context,token:String?,id:Int){
        module.getRule(c,token,id)
    }

    override fun getRule(examBean: ExamRuleBean) {
        view?.setRule(examBean)
    }
}